<?php

    /**
     * Abstract
     *
     * Class which represents the abstract part of caching system
     *
     * @package      Core
     * @subpackage   Cache
     *
     * @license      GNU Lesser General Public Licence see LICENCE-LGPL file or http://www.gnu.org/licenses/lgpl.html
     */
    abstract class Core_Cache_Abstract
    {

    ////////////////////////////////////////////////////////////////////////////
    //                                Variables                               //
    ////////////////////////////////////////////////////////////////////////////

        /**
         * Last cache refresh timestam
         *
         * @var integer
         */
        protected static $_cache_timestamp;

        /**
         * Cache validity in seconds
         *
         * @var integer
         */
        protected static $_cache_lifespan;

    ////////////////////////////////////////////////////////////////////////////
    //                            Getters / Setters                           //
    ////////////////////////////////////////////////////////////////////////////

        /**
         * Get cache creation or update timestamp
         *
         * @return      integer
         */
        public static function getCacheTimeStamp()
        {
            return self::$_cache_timestamp;
        }

        /**
         * Get cache validity life span
         *
         * @return      integer
         */
        public static function getCacheLifeSpan()
        {
            return self::$_cache_lifespan;
        }
    }
